package com.zzz.service.impl;

import com.aaa.entity.GGoods;
import com.aaa.vo.Result;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zzz.service.GGoodsService;
import com.zzz.mapper.GGoodsMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author 86176
* @description 针对表【g_goods(商品表)】的数据库操作Service实现
* @createDate 2023-03-06 14:07:35
*/
@Service
@SuppressWarnings("all")
public class GGoodsServiceImpl extends ServiceImpl<GGoodsMapper, GGoods>
    implements GGoodsService{

    @Autowired
    private GGoodsMapper goodsMapper;

    //查询商品详细信息
    @Override
    public Result goodsById(Integer id) {
        GGoods gGoods = goodsMapper.goodsById(id);
        return new Result(2000,"查询成功",gGoods);
    }
}




